package nsd.test.zy03;

public class Point {
    private int x;
    private int y;

    public Point() {

    }

    public Point(int x0, int y0) {
        this.x=x0;
        this.y=y0;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public void movePoint(int dx,int dy){
        System.out.println("移动前的坐标："+"("+dx+","+dy+")");
        System.out.println("移动后的坐标："+"("+dy+","+dx+")");
        System.out.println("~~~~~~~~~~~~~~~~~~");
    }
}
